home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / lib / partman / init.d / 03kernelmodules_xfs < prev    next >
Text File  |  2009-10-28  |  310b  |  21 lines

  1. #!/bin/sh
  2.  
  3. mkdir -p /var/lib/partman
  4.  
  5. cat /proc/modules |
  6. while read module_name x; do
  7.     if [ "$module_name" = xfs ]; then
  8.         >/var/lib/partman/xfs
  9.         exit 0
  10.     fi
  11. done
  12.  
  13. if modprobe xfs >/dev/null 2>/dev/null; then
  14.     >/var/lib/partman/xfs
  15.     exit 0
  16. fi
  17.  
  18. if grep -q xfs /proc/filesystems; then
  19.     >/var/lib/partman/xfs
  20. fi
  21.